package com.scwuhua.service;

import com.scwuhua.domain.MeteorologicalSoil;
import com.scwuhua.dto.IntegratedData;
import com.scwuhua.dto.MeteorologicalSoilListDto;

import java.util.List;

/**
 * 数据查询Service接口
 * 
 * @author wuhua
 * @date 2023-05-06
 */
public interface IMeteorologicalSoilService 
{
    /**
     * 查询数据查询
     * 
     * @param id 数据查询主键
     * @return 数据查询
     */
    public MeteorologicalSoil selectMeteorologicalSoilById(Integer id);

    /**
     * 查询数据查询列表
     * 
     * @param meteorologicalSoil 数据查询
     * @return 数据查询集合
     */
    public IntegratedData selectMeteorologicalSoilList(MeteorologicalSoil meteorologicalSoil);

    /**
     * 新增数据查询
     * 
     * @param meteorologicalSoil 数据查询
     * @return 结果
     */
    public int insertMeteorologicalSoil(MeteorologicalSoil meteorologicalSoil);

    /**
     * 修改数据查询
     * 
     * @param meteorologicalSoil 数据查询
     * @return 结果
     */
    public int updateMeteorologicalSoil(MeteorologicalSoil meteorologicalSoil);

    /**
     * 批量删除数据查询
     * 
     * @param ids 需要删除的数据查询主键集合
     * @return 结果
     */
    public int deleteMeteorologicalSoilByIds(Integer[] ids);

    /**
     * 删除数据查询信息
     * 
     * @param id 数据查询主键
     * @return 结果
     */
    public int deleteMeteorologicalSoilById(Integer id);
    /**
     * 查询该设备当日数据
     *
     * */
    List<MeteorologicalSoil> dayData(MeteorologicalSoil meteorologicalSoil);

    /**
     * 查询设备最新数据
     * */
    MeteorologicalSoilListDto newestData(MeteorologicalSoil meteorologicalSoil);
    /**
     * 一键同步功能
     * */
    int synchroData();

}
